﻿// -----------------------------------------------------------------------
// <copyright file="KeyboardManager.cs" company="">
// TODO: Update copyright text.
// </copyright>
// -----------------------------------------------------------------------

namespace Yottamud_2013_v3_Main.Game_Files
{
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using Yottamud_Project_V3;
    using System.Windows.Input;

    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    public class GameCommandManager
    {
        private static MainWindow _inputGUI;
        
        public GameCommandManager(MainWindow inputGUI)
        {
            _inputGUI = inputGUI;
        }

        public static string ManualPlayerMovement(KeyEventArgs e)
        {
            string moveToDirection = string.Empty;

            switch (e.Key)
            {
                case Key.Decimal:
                    moveToDirection = "D\r\n";
                    break;
                case Key.NumPad0:
                    moveToDirection = "U\r\n";
                    break;

                case Key.NumPad1:
                    moveToDirection = "SW\r\n";
                    break;

                case Key.NumPad2:
                    moveToDirection = "S\r\n";
                    break;
                case Key.NumPad3:
                    moveToDirection = "SE\r\n";
                    break;

                case Key.NumPad4:
                    moveToDirection = "W\r\n";
                    break;

                case Key.NumPad5:
                    moveToDirection = "Rest\r\n";
                    break;
                case Key.NumPad6:
                    moveToDirection = "E\r\n";
                    break;

                case Key.NumPad7:
                    moveToDirection = "NW\r\n";
                    break;

                case Key.NumPad8:
                    moveToDirection = "N\r\n";
                    break;
                case Key.NumPad9:
                    moveToDirection = "NE\r\n";
                    break;
                default:
                    moveToDirection = "";
                    break;
            }

            return moveToDirection;
        }
    }
}
